package com.android.advertising;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;

public class ArticleDatabaseHelper extends SQLiteOpenHelper{

	public ArticleDatabaseHelper(Context context, String name,
			CursorFactory factory, int version) {
		super(context, name, factory, version);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
			db.execSQL(Constants.CREATE_TABLE_ARTICLE);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int arg1, int arg2) {
		db.execSQL(Constants.DROP_TABLE_ARTICLE);
		onCreate(db);
	}

}
